

package com.dog.basics.bean.dto.admin.sys;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author guonh
 * @since 2017-10-29
 */
@Data
public class AdminSysRoleAddDto {


    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称", dataType = "String")
    @Size(min = 1, max = 50, message = "角色名称长度 1-50")
    private String roleName;

    @NotBlank(message = "角色标识不能为空")
    @ApiModelProperty(value = "角色标识", dataType = "String")
    @Size(min = 1, max = 50, message = "角色标识长度 1-50")
    private String roleCode;

    @ApiModelProperty(value = "角色描述", dataType = "String")
    @Size(max = 255, message = "角色描述长度255")
    private String roleDesc;

    @NotNull(message = "数据权限类型不能为空")
    @ApiModelProperty(value = "数据权限类型0:全部 1:自定义 2:本级及子级 3:本级")
    private Integer dsType;


}
